<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
 <table width="100%" cellpadding="0" cellspacing="0" border="1">
 <tr>
 
 <td width="80" class="td_l_c">编号</td>
 <td class="td_l_l">客户名称</td>
 <?php if (isset($value['dd_olinkman'])){?>
 <td class="td_l_c">联系人</td>
 <?php }?>
 <?php if (isset($value['dd_osdate'])){?>
 <td class="td_l_c">下单日期</td>
 <?php }?>
 <?php if (isset($value['dd_oedate'])){?>
 <td class="td_l_c">交单日期</td>
 <?php }?>
 

 <td class="td_l_c">订单金额</td>

 <?php if (isset($value['dd_ostate'])){?>
 <td class="td_l_c">状态</td>
 <?php }?>
 <?php if (isset($value['dd_ouser'])){?>
 <td class="td_l_c">业务员</td>
 <?php }?>
 <?php if (isset($value['dd_otime'])){?>
 <td class="td_l_c">录入时间</td>
 <?php }?>
 </tr>

 <?php foreach($list as $arr=>$row) {?>
 <tr class="tr">
 <td class="td_l_c"><?php echo $row['id']?></td>
 <td class="td_l_l"><a onclick='Order_InfoView<?php echo $row['cid']?>()' style="cursor:pointer;"><?php echo $row['company']?></a></td>
 <?php if (isset($value['dd_olinkman'])){?>
 <td class="td_l_c"><?php echo $row['linkman']?></td>
 <?php }?>
 <?php if (isset($value['dd_osdate'])){?>
 <td class="td_l_c"><?php echo $row['sdate']?></td>
 <?php }?>
 <?php if (isset($value['dd_oedate'])){?>
 <td class="td_l_c"><?php echo $row['edate']?></td>
 <?php }?>

 <td class="td_l_c"><?php echo $row['money']?></td>
 <?php if (isset($value['dd_ostate'])){?>
 <td class="td_l_c">
 <a onclick='Order_InfoAudit<?php echo $row['id']?>()' class="btn_sh<?php echo $row['state']?>" ><?php echo $audit[$row['state']]?></a>
 </td>
 <?php }?>
 <?php if (isset($value['dd_ouser'])){?>
 <td class="td_l_c"><?php echo $row['user']?></td>
 <?php }?>
 <?php if (isset($value['dd_otime'])){?>
 <td class="td_l_c"><?php echo $row['cdate']?></td>
 <?php }?>
  
 </tr>
 <?php }?>
 </table>